package com.atguigu.lease.common.exception;

import com.atguigu.lease.common.result.ResultCodeEnum;
import lombok.Data;

@Data
public class LeaseException extends RuntimeException{
    //接收异常的枚举类型
    private ResultCodeEnum resultCodeEnum;

    public LeaseException(ResultCodeEnum codeEnum){
        this.resultCodeEnum = codeEnum;
    }
}

